/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.Calendar;

/**
 * <p>Project: jse2204 - Format2
 * <p>Powered by webrx On 2022-08-30 09:30:45
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Format2 {
    public static void main(String[] args) {

        //实例化日历类
        Calendar c = Calendar.getInstance();
        //c.set();
        //设置日历类实例的小时为5时
        c.set(Calendar.HOUR,15);
        //c.get();
        //获取小时数   Calendar.HOUR_OF_DAY = 11
        int h = c.get(Calendar.HOUR_OF_DAY);
        System.out.println(h);

        //c.add();
        //c.add(Calendar.DATE,-7);
        //System.out.printf("%tF %<tT%n",c);
    }
}
